package com.pig4cloud.pig.village.contract.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pig4cloud.pig.village.api.dto.LandContractTotalDTO;
import com.pig4cloud.pig.village.api.entity.LandContract;
import io.swagger.v3.oas.annotations.Parameter;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author limbray.li
 * @date 2021/6/19
 */
@Mapper
public interface LandContractMapper extends BaseMapper<LandContract> {
	List<LandContractTotalDTO> groupTotal(@Param("year") Integer year);
	LandContractTotalDTO oneTotal(@Param("year") Integer year,@Param("teamId") Long teamId);
}
